<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
     <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<h3>주간 베스트</h3>
<c:set var="bmap" value="${requestScope.listBmap }"></c:set>
<div id="gallery_list">
	<div class="category_list">
		<h4>습작</h4>
		<c:forEach var="i" items="${bmap.pList }">
			<div class="practice">
				<c:choose>
					<c:when test="${sessionScope.mvo!=null }">
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=${sessionScope.mvo.uId}">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:when>
					<c:otherwise>
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=0">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:otherwise>
				</c:choose>
					<p>${i.count } / ${i.wow } / ${i.w_date }</p>
					
		<!-- 댓글 있으면 when  -->		
			<c:choose>
				<c:when test="${i.re_count!=null}">
					<td>
						<p><b>title : ${i.title }
						<font size="1" face="나눔 고딕"> [ ${i.re_count} ]</font></b></p>
					</td>
				</c:when>
				
				<c:otherwise>
					<p><b>title : ${i.title }</b></p>
				</c:otherwise>
			</c:choose>
		<!-- 댓글관련 끝 -->
			</div>
		</c:forEach>
	</div>

	<div class="category_list">
		<h4>연작</h4>
		<c:forEach var="i" items="${bmap.sList }">
			<div class="series">
				<c:choose>
					<c:when test="${sessionScope.mvo!=null }">
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=${sessionScope.mvo.uId}">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:when>
					<c:otherwise>
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=0">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:otherwise>
				</c:choose>
					<p>${i.count } / ${i.wow } / ${i.w_date }</p>
					
		<!-- 댓글 있으면 when  -->		
			<c:choose>
				<c:when test="${i.re_count!=null}">
					<td>
						<p><b>title : ${i.title }
						<font size="1" face="나눔 고딕"> [ ${i.re_count} ]</font></b></p>
					</td>
				</c:when>
				
				<c:otherwise>
					<p><b>title : ${i.title }</b></p>
				</c:otherwise>
			</c:choose>
		<!-- 댓글관련 끝 -->
			</div>
		</c:forEach>
	</div>

	<div class="category_list">
		<h4>작품</h4>
		<c:forEach var="i" items="${bmap.aList }">
			<div class="series">
				<c:choose>
					<c:when test="${sessionScope.mvo!=null }">
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=${sessionScope.mvo.uId}">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:when>
					<c:otherwise>
						<a href="gallery.do?mode=content&no=${i.no }&memberVO.uId=0">
						<img src="/img/thumb_gal/${i.thumbImgName}"></a>
					</c:otherwise>
				</c:choose>
					<p>${i.count } / ${i.wow } / ${i.w_date }</p>
					
		<!-- 댓글이 있으면 when -->		
			<c:choose>
				<c:when test="${i.re_count!=null}">
					<td>
						<p><b>title : ${i.title }
						<font size="1" face="나눔 고딕"> [ ${i.re_count} ]</font></b></p>
					</td>
				</c:when>
				
				<c:otherwise>
					<p><b>title : ${i.title }</b></p>
				</c:otherwise>
			</c:choose>
		<!-- 댓글관련 끝 -->
			</div>
		</c:forEach>
	</div>
	

<c:forEach items="${listBmap.wList }" var="week">	
	<div class="${week }best_weekly" align="center" >2012년 ${week }번째주 베스트사진
				<input type="hidden" id="week" value="${week }">
	</div>
</c:forEach>

</div>